import { get, post, put, $delete } from '@/http'
// 定时任务
export function getJobByIdApi(id: number) {
    return get(`/job/api-job/detail/${id}`)
}
export function addJobApi(params: any) {
    return post('/job/api-job/add', params)
}
export function updateJobApi(params: any) {
    return put('/job/api-job/edit', params)
}
export function deleteJobApi(id: number) {
    return $delete(`/job/api-job/delete/${id}`)
}
export function changeStatusApi(params: any) {
    return put(`/job/api-job/changeStatus`, params )
}
export function runApi(params: any) {
    return put(`/job/api-job/run`, params )
}
export function getJobLogApi(params: any) {
    return post(`/job/api-job-log/list`, params)
}
